package com.zxw.flow.api;

import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.flow.domain.entity.FlowNodesModel;
import com.zxw.flow.domain.entity.FlowNodesRelation;
import com.zxw.flow.domain.entity.FlowNodesRelation;
import com.zxw.flow.domain.vo.FlowNodesModelVO;
import com.zxw.flow.domain.vo.FlowNodesRelationPageVO;
import com.zxw.flow.domain.vo.FlowNodesRelationVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author Xuewei.Zhang
 * @date 2022/7/6
 */
public interface FlowNodesRelationApi {
    @GetMapping("/page")
    BasePageRes<FlowNodesRelation> page(FlowNodesRelationPageVO flowNodesRelationPageVO);

    @GetMapping("/{flowNodesRelationId}")
    BaseRes<FlowNodesRelation> findFlowNodesRelationById(@PathVariable("flowNodesRelationId") Long flowNodesRelationId);

    @PostMapping("/insert")
    BaseRes<FlowNodesRelationVO> insertFlowNodesRelation(@RequestBody FlowNodesRelationVO flowNodesRelationVO);

    @PutMapping("/update/{flowNodesRelationId}")
    BaseRes updateFlowNodesRelation(@PathVariable("flowNodesRelationId") Long flowNodesRelationId, @RequestBody FlowNodesRelationVO flowNodesRelationVO);

    @DeleteMapping("/{flowNodesRelationIds}")
    BaseRes deleteFlowNodesRelation(@PathVariable("flowNodesRelationIds") String flowNodesRelationIds);

}
